package com.meng;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
public class SpringbootJwtApplication implements WebMvcConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootJwtApplication.class, args);
    }

    //    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        // 使拦截器生效
//        registry.addInterceptor(new AuthenticateInterceptor())
//                .excludePathPatterns("/logout/**")
//                .excludePathPatterns("/login/**")
//                .addPathPatterns("/**");
//
//    }

}
